################################################################### 
##    Project: Measuring Media Freedom  (BJPS, 2020)              #
##    Authors:    Jonathan A. Solis        Philip D. Waggoner     #
##             (jsolis@aiddata.wm.edu)  (pdwaggoner@uchicago.edu) #
##    Task: Read me file to guide through replication materials   #
##    Date: 01/30/2020                                            #
################################################################### 

I. Instructions:

Use this document as a guide for the replication materials in both the BJPS manuscript and the appendix. Compiling this
manuscript and appendix required many different source code that could not all neatly fit into one place. We list each
code and data source to better orient replication. The replication materials cover the following from our project:

-> Creation of MSF scores (manuscript)
-> Replication/reanalysis of Egorov et al. (manuscript)
-> Replication/reanalysis of Whitten-Woodring (appendix)
-> Replication/reanalysis of Stier (appendix)
-> Replication/reanalysis of Schoonvelde (appendix)

Please do not hesitate to contact us if you have any questions.

II. MSF Data

To create these data, please use the following code:

 -> 'bjps_msf_irt-figures.R' 

This code will require these documents:
 -> 'irt_full.csv'    #contains 10 media freedom manifest variables
 -> 'cow2.csv'        #contains Correlates of War codes to be merged for countries
 -> 'DynamicGRM.txt'  #DGRM model code

III. Figures in Manuscript

Once section II runs, you can use the remaining code in

 -> 'bjps_msf_irt-figures.R'

to create the following figures:

 -> Figure 1
 -> Figure 2
 -> Figure 3
 -> Figure 4
 -> Figure 5

 to create the map in

 -> Figure 3

we created an object in R from a .csv file that includes on MSF scores for 2016 and ISO3 numbers for each country. The .csv file is:

 -> '2016MSFMmap.csv'

VI. Manuscript Replication

We replicate and reanalyze the main results from four peer-reviewed empirical articles using our new MSF data. Due to space constraints, 
we only include Egorov et al. (2009) in the manuscript, but also include Whitten-Woodring (2009), Schoonvelde (2014), 
and Stier (2015) in the Appendix (Section E.1.1). 

For Egorov et al. reanalysis (manuscript, table 2) use:

 -> 'bjps_msf_rep-analysis.do'
 -> 'bjps_msf_rep-egorov.dta' (also available in .csv)

For Whitten-Woodring, Stier, and Schoonvelde reanalysis in the appendix use the following code:

 -> 'bjps_msf-apndx_analysis.do'

 then use these datasets: 

 -> 'bjps_msf-apndx_data_jww.dta' (also available in .csv)
 -> 'bjps_msf-apndx_data_stier.dta' (also available in .csv)
 -> 'bjps_msf-apdnx_data_schoonvelde.dta' (also available in .csv)

We perform other robustness checks in the appendix and will be happy to share them upon request.

					#######
					# END #
					#######